/*
 ============================================================================
 Name        : hcputils.h
 Version     : 4.1
 Description : Coding sample for general operations used by the HCP samples.

 License     :
               Copyright (c) 2011 Hitachi Data Systems, Inc.

               Permission is hereby granted to  this software and associated
               documentation files (the "Software"), subject to the terms and
               conditions of the Sample Source Code License (SSCL) delivered
               with this Software. If you do not agree to the terms and
               conditions of the SSCL,

                 (i)  you must close this file and delete all copies of the
                      Software, and
                 (ii) any permission to use the Software is expressly denied.


 ============================================================================
 */

#ifndef HCPUTILS_H_
#define HCPUTILS_H_

#ifndef TRUE
#define TRUE 1
#endif

#ifndef FALSE
#define FALSE 0
#endif

// Definitions of useful routines in this module.

size_t headerProcessor(void *ptr, size_t size, size_t nmemb, void *userdata);

char *MD5HashString(const char *inStr);

char *Base64EncodeString(const char *inStr);

char *createAuthHeader(char *inUserName, char *inPassword);

#endif /* HCPUTILS_H_ */
